﻿using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using System.Net;

namespace ZingFrameworkCore.Common.Cache
{
    public static  class HttpContext
    {
        private static IHttpContextAccessor _contextAccessor;
        public static Microsoft.AspNetCore.Http.HttpContext Current => _contextAccessor.HttpContext;
        public static void UseHttpContext(this IApplicationBuilder app, IHttpContextAccessor contextAccessor)
        {
            _contextAccessor = contextAccessor;
        }

        
    }
}
